export interface AccountRulesType {
  name: any[];
  password: any[];
}
export const accountRules: AccountRulesType = {
  name: [
    {
      required: true,
      message: "请输入您的账号",
      trigger: "blur"
    },
    {
      pattern: /[a-z0-9A-Z]{3,8}/,
      message: "请输入3-8位任意数字和字母的组合",
      trigger: "blur"
    }
  ],
  password: [
    {
      required: true,
      message: "请输入您的密码",
      trigger: "blur"
    },
    {
      pattern: /[a-z0-9A-Z]{6,12}/,
      message: "请输入6-12位任意数字和字母的组合",
      trigger: "blur"
    }
  ]
};
